
<li class="layui-nav-item layui-this" >
    <a href="javascript:" lay-href="/admin/welcome">
        <i class="layui-icon layui-icon-home"></i>
        <cite>主页</cite>
    </a>
</li>

{volist name="plugin_nav" id="vo"}
{if !isset($vo['child'])}
<li class="layui-nav-item">
    <a href="javascript:" lay-href="/plugin{$vo.url}">
        <i class="layui-icon {$vo.icon}"></i>
        <cite>{$vo.name}</cite>
    </a>
</li>
{else /}
<li class="layui-nav-item">
    <a href="javascript:" >
        <i class="layui-icon {$vo.icon}"></i>
        <cite>{$vo.name}</cite>
    </a>
    <dl class="layui-nav-child">
        {volist name="vo.child" id="value"}
        <dd>
            <a lay-href="/plugin{$value.url}">{$value.name}</a>
        </dd>
        {/volist}
    </dl>
</li>
{/if}
{/volist}

{if power('nav_user_group','用户管理','nav')}
<li class="layui-nav-item">
    <a href="javascript:" >
        <i class="layui-icon layui-icon-user"></i>
        <cite>用户管理</cite>
    </a>
    <dl class="layui-nav-child">
        {if power('nav_user_group-user','用户','nav')}
        <dd>
            <a lay-href="/admin/user">用户</a>
        </dd>
        {/if}
        {if power('nav_user_group-role','角色','nav')}
        <dd>
            <a lay-href="/admin/role">角色</a>
        </dd>
        {/if}
        {if power('nav_user_group-permission','权限','nav')}
        <dd>
            <a lay-href="/admin/permission">权限</a>
        </dd>
        {/if}
    </dl>
</li>
{/if}
{if power('nav_plugin','插件管理','nav')}
<li class="layui-nav-item">
    <a href="javascript:" lay-href="/admin/plugin">
        <i class="layui-icon layui-icon-star-fill"></i>
        <cite>插件管理</cite>
    </a>
</li>
{/if}
{if power('nav_log','操作日志','nav')}
<li class="layui-nav-item">
    <a href="javascript:" lay-href="/admin/log">
        <i class="layui-icon layui-icon-log"></i>
        <cite>操作日志</cite>
    </a>
</li>
{/if}
<!--
<li class="layui-nav-item">
    <a href="javascript:" lay-href="/admin/server">
        <i class="layui-icon layui-icon-log"></i>
        <cite>在线客服</cite>
    </a>
</li>
-->
